package com.chizha.service;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class LoginService {
	
	public Record login(String code, String password){
		Record userInfo = Db.findFirst("SELECT * FROM r_user WHERE code = '"+code+"' and password = '"+password+"'");
		
		return userInfo;
	}
}
